import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl


mpl.rcParams['xtick.labelsize'] = 24
mpl.rcParams['ytick.labelsize'] = 24
np.random.seed(42)

x = np.linspace(0, 5, 100)

y = 2*np.sin(x)
y_data = y + np.random.normal(scale=0.3, size=100)

plt.figure('data')

plt.plot(x, y_data, '.')

plt.figure('model')
plt.plot(x, y)

plt.figure('data & model')
plt.plot(x, y, 'k', lw=3)
plt.scatter(x, y_data)
plt.show()
